package com.huawei.hwCloudJs;

import android.util.Log;
import com.huawei.hwCloudJs.service.a.b$a;
import java.util.List;
import org.json.JSONObject;

class HWCloudJSBridge$1 implements b$a {
    final /* synthetic */ String a;
    final /* synthetic */ String b;
    final /* synthetic */ List c;
    final /* synthetic */ JSONObject d;
    final /* synthetic */ HWCloudJSBridge e;

    HWCloudJSBridge$1(HWCloudJSBridge hWCloudJSBridge, String str, String str2, List list, JSONObject jSONObject) {
        this.e = hWCloudJSBridge;
        this.a = str;
        this.b = str2;
        this.c = list;
        this.d = jSONObject;
    }

    public void a(int i) {
        if (i == 0) {
            Log.i("HWCloudJSBridge", "JS configAuthSUC");
            HWCloudJSBridge.a(this.e, this.a, this.b, this.c, this.d);
            c.a(HWCloudJSBridge.a(this.e));
        } else if (i == -2) {
            Log.e("HWCloudJSBridge", "JS AUTH_FAIL_NO_NET");
            c.a(HWCloudJSBridge.a(this.e), 12);
        } else if (i == -1) {
            Log.e("HWCloudJSBridge", "JS AUTH_FAIL");
            c.a(HWCloudJSBridge.a(this.e), 10);
        } else if (i == -3) {
            Log.e("HWCloudJSBridge", "JS AUTH_FAIL_NET_ERROR");
            c.a(HWCloudJSBridge.a(this.e), 11);
        } else if (i == -4) {
            Log.e("HWCloudJSBridge", "JS AUTH_FAIL_OTHER");
            c.a(HWCloudJSBridge.a(this.e), (int) b.k);
        } else {
            Log.e("HWCloudJSBridge", "JS JS_CONFIG_RET_CODE_GW_ERROR" + i);
            c.a(HWCloudJSBridge.a(this.e), 14, i + "");
        }
    }
}
